package com.qfedu.yuxiaoer.service.impl;

import com.qfedu.yuxiaoer.entity.MyApartment;
import com.qfedu.yuxiaoer.mapper.MyApartmentMapper;
import com.qfedu.yuxiaoer.service.MyApartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MyApartmentServiceImpl implements MyApartmentService {

    @Autowired
    private MyApartmentMapper myApartmentMapper;

    @Override
    public MyApartment selectMyApartment(Integer id) {
        return myApartmentMapper.selectByPrimaryKey(id);
    }

    @Override
    public int update(MyApartment myApartment) {
        return myApartmentMapper.updateByPrimaryKeySelective(myApartment);
    }
}
